<?php
session_start();

if (!isset($_SESSION['login'])) {
    header("Location: index.html");
} else {
    if ($_SESSION['funcao'] == "aluno") {
        header("Location: mainportal_aluno.php");
    }
}
?>

<html>
    <head>
        <title>Importa&ccedil;&atilde;o CSV</title>
        <link rel="stylesheet" type="text/css" href="temaformulario.css">
    </head>
    <body>
        <a href="http://www.unipampa.edu.br"> <img src="img/cabecalhoportal_aluno.jpg" alt="UNIPAMPA"></a>
        <a href="logoutportal_aluno.php"><img src="img/x.png" alt="Sair"></a>
        <a href="mainportal_cadastro.php"><img src="img/home.png" alt="Página Inicial"> </a>
        <h1>Selecione a op&ccedil;&atilde;o de arquivo para importa&ccedil;&atilde;o:</h1><br>
        <form method="post" action="processaUpload.php" enctype="multipart/form-data">
            <h2><input type="radio" name="importe" value="disciplinas"/>Disciplinas</h2>
            <h2><input type="radio" name="importe" value="alunos" />Alunos</h2>
            <input type="file" name="arquivo" />
            <input type="submit" value="Enviar"/>
        </form>
    </body>
</html>
